export const tableComponentConfig = {
  removeButton: () =>
    import('@/views/purchase-order/components/tableComp/removeButton.vue'),
  orderNumberShow: () =>
    import('@/views/purchase-order/components/tableComp/orderNumberShow.vue'),
};

export const tableRenderConfig = {
  // 主表一期不做字段： 是否已发布到协同平台 供应商反馈状态 供应商反馈内容 供应商备注 协同标记
  index: { title: '序号', dataIndex: 'index', slotName: 'index', width: 150 },
  secretLevel: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    slotName: 'secretLevel',
    width: 150,
  },
  status: { title: '状态', dataIndex: 'statusName', width: 150 },
  billNo: { title: '变更单号', dataIndex: 'billNo', width: 150 },
  listChangeFlag: {
    title: '变更正文',
    dataIndex: 'listChangeFlag',
    width: 150,
  },
  orderNo: { title: '采购订单编号', dataIndex: 'orderNo', width: 150 },
  contractNo: { title: '商务合同编号', dataIndex: 'contractNo', width: 150 },
  mdsVendorNameNew: {
    title: '供应商名称',
    dataIndex: 'mdsVendorNameNew',
    width: 150,
  },
  editUserName: { title: '编制人', dataIndex: 'editUserName', width: 150 },
  editDatetime: { title: '编制日期', dataIndex: 'editDatetime', width: 250 },
  effectiveBegDatetime: {
    title: '有效起始日期',
    dataIndex: 'effectiveBegDatetime',
    width: 250,
  },
  effectiveEndDatetime: {
    title: '有效截止日期',
    dataIndex: 'effectiveEndDatetime',
    width: 250,
  },
  mdsCatagoryLv1Code: {
    title: '一级采购品类编码',
    dataIndex: 'mdsCatagoryLv1Code',
    width: 150,
  },
  mdsCatagoryLv1Name: {
    title: '一级采购品类名称',
    dataIndex: 'mdsCatagoryLv1Name',
    width: 150,
  },
  orderInfo20: {
    title: '是否已发布到协同平台',
    dataIndex: 'orderInfo20',
    width: 250,
  },
  orderInfo21: {
    title: '供应商反馈状态',
    dataIndex: 'orderInfo21',
    width: 150,
  },
  orderInfo22: {
    title: '供应商反馈内容',
    dataIndex: 'orderInfo22',
    width: 150,
  },
  vendorNote: { title: '供应商备注', dataIndex: 'vendorNote', width: 150 },
  orderInfo24: { title: '协同标记', dataIndex: 'orderInfo24', width: 150 },
  ordChngType: { title: '更改类型', dataIndex: 'ordChngType', width: 150 },
  pmsOrderLNo: { title: '订单明细编号', dataIndex: 'pmsOrderLNo', width: 150 },
  orderInfo27: { title: '物料编码', dataIndex: 'orderInfo27', width: 150 },
  mdsItemNameNew: {
    title: '物料名称',
    dataIndex: 'mdsItemNameNew',
    width: 150,
  },
  orderInfo29: { title: '牌号', dataIndex: 'orderInfo29', width: 150 },
  orderInfo30: { title: '规格', dataIndex: 'orderInfo30', width: 150 },
  orderInfo31: { title: '技术条件', dataIndex: 'orderInfo31', width: 150 },
  orderInfo32: { title: '变更前数量', dataIndex: 'orderInfo32', width: 150 },
  orderInfo33: { title: '变更后数量', dataIndex: 'orderInfo33', width: 150 },
  orderInfo34: { title: '变更前时间', dataIndex: 'orderInfo34', width: 150 },
  orderInfo35: { title: '变更后时间', dataIndex: 'orderInfo35', width: 150 },
  orderInfo36: { title: '备注', dataIndex: 'orderInfo36', width: 150 },
  orderInfo37: { title: '变更原因', dataIndex: 'orderInfo37', width: 150 },
  orderInfo38: {
    title: '变更后转码机型',
    dataIndex: 'orderInfo38',
    width: 150,
  },
  orderInfo39: {
    title: '变更后转码图号',
    dataIndex: 'orderInfo39',
    width: 150,
  },
  operate: {
    title: '操作',
    dataIndex: 'operate',
    slotName: 'operate',
    fixed: 'right',
    width: 300,
  },
};
